layui.use(["element", 'form', 'laypage'], function () {
  var element = layui.element,
    form = layui.form,
    laypage = layui.laypage;
  laypage.render({
    elem: 'test1'
    ,count: 100
    ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
    ,jump: function(obj){
      console.log(obj)
    }
  });

  $('#searchBtn').on('click', function () {

  });
});
// AssetCode  资产代码  

var vm = new Vue({
  el: '#app',
  data: {
    ArrData: [],
    totalVisible: false,
    tableIns: [],
    defaultData: []
  },
  mounted: function () {
    this.init()
  },
  methods: {
    init: function () {
      localStorage.setItem('navigation','<a href="#">首页</a><span lay-separator="">/</span><a href="">资讯管理</a><span lay-separator="">/</span><a><cite>资讯列表</cite></a>');
      var arry = ["1;市场信息资讯1;市场信息;ccbAdmin;95533;2018-11-17 19:36;2018-11-17 19:36;已发布","2;市场信息资讯2;市场信息;ccbAdmin;95533;2018-11-17 19:36;2018-11-17 19:36;已发布","3;同业动态资讯1;同业动态;ccbAdmin;95533;2018-11-17 19:36;2018-11-17 19:36;已发布","4;同业动态资讯2;同业动态;ccbAdmin;95533;2018-11-17 19:36;2018-11-17 19:36;已发布","5;政策导读资讯1;政策导读;ccbAdmin;95533;2018-11-17 19:36;2018-11-17 19:36;已发布","6;政策导读资讯2;政策导读;ccbAdmin;95533;2018-11-17 19:36;2018-10-17 19:36;未发布"];
      arry.map(item => {
        var keyData = item.split(";");
        var obj = {};
        keyData.map((item, index) => {
          if (index == 0) {
            obj['id'] = item;
          } else {
            obj['field' + index] = item;
          }
        });
        this.ArrData.push(obj);
      });
      this.defaultData = this.tableIns = this.ArrData;
    },
    del: function(index){
      this.ArrData.splice(index, 1);
    },
  }
})